/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package gride.test

import gride.groovy.Regex


System.in.withReader {

    while ((input = it.readLine()) != "Q")
    {
        println(Regex.getPackageNameFromSource(input))
    }
}

